package PayrollGroup.trans;

import PayrollGroup.PaymentClassification;
import PayrollGroup.Transaction;
import PayrollGroup.classification.HourlyClassification;

public class AddHourlyEmployeeTransaction extends AddEmployeeTransaction implements Transaction {
	private double hourlyRate;
	public AddHourlyEmployeeTransaction(int empId, String name, String address, double hourlyRate) {
		super(empId,name,address);
		this.hourlyRate = hourlyRate;
	}

	@Override
	protected PaymentClassification getPaymetClassification(){
		return new HourlyClassification(hourlyRate);
		
	}

}
